function listProductCd (svname, delim, cv2cd)
{
	bufarry=[];

	leaders = new Array (1);
	leaders[0] = "http://" + svname + "/product/item/itm_";
	x0 = new Array (leaders.length);
	for (i = 0; i < leaders.length; i++)
	{
		x0[i] = leaders[i].length;
	}
	sx = "";
	count = 0;
	for (i = 0; i < document.links.length; i++)
	{
		obj = document.links[i];
		hr = obj.href;
		for (L = 0; L < leaders.length; L++)
		{	
			if (hr.indexOf (leaders[L]) == 0){
				pid = hr.substring (x0[L]);
				pid = pid.substring (0, 10);
				if (count > 0) sx = sx + delim ;
				if (cv2cd){
					if (sx.indexOf(id2cd(pid)) == -1 ){
						sx = sx + id2cd (pid);
					}
				}else{
					if (sx.indexOf(pid == -1 )){
					sx = sx + pid;
					
					}
				}
				count++;
			}
		}
	}
	return sx;
}

function	id2cd (pid)
{
	cd = String.fromCharCode (pid.substring (0, 2)) + pid.substring (2, 8) + String.fromCharCode (pid.substring (8))
	return cd;
}
